<template>
  <div class="layout-page">
    <!-- 首页架子 - 内容区域 -->
    <router-view></router-view>
    <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000"
      route>
      <!-- 配置路由出口,  配置 tabbar -->
      <van-tabbar-item to="/shouye" icon="fire-o">首页</van-tabbar-item>
      <van-tabbar-item to="/findhome" icon="search">找房</van-tabbar-item>
      <van-tabbar-item to="/messagetime" icon="newspaper-o">咨询</van-tabbar-item>
      <van-tabbar-item to="/my" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  name: 'layout-page',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped></style>
